package com.mcxx.modules.miniSalvation.family.service.write;

import com.mcxx.modules.miniSalvation.family.entity.OrganizationEntity;
import com.mcxx.modules.miniSalvation.family.dao.write.OrganizationWriteDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@TaTransactional
public class OrganizationWriteService {

    @Autowired
    private OrganizationWriteDao organizationWriteDao;



    public int insert(OrganizationEntity organization) {
    	return organizationWriteDao.insert(organization);
    }


    public int insertIgnoreNull(OrganizationEntity organization) {
    	return organizationWriteDao.insertIgnoreNull(organization);
    }


    public int update(OrganizationEntity organization) {
    	return organizationWriteDao.update(organization);
    }


    public int updateIgnoreNull(OrganizationEntity organization) {
    	return organizationWriteDao.updateIgnoreNull(organization);
    }


    public int deleteById(String id) {
    	return organizationWriteDao.deleteById(id);
    }


    public int updateStatus(Map<String,Object> param){
        return organizationWriteDao.updateStatus(param);
    }


    public int modifyStatus(String id,String status){
        return organizationWriteDao.modifyStatus(id,status);
    }

}
